home *** CD-ROM | disk | FTP | other *** search
- /*
- \funcref{fun\_gr}{void fun\_gr ()}
- {}
- {}
- {push(), compare(), pop()}
- {}
- {fungr.c}
- {
- Function {\em fun\_gr()} is called when opcode {\em op\_gr} is read.
- This function pops two variables, calls {\em compare()} to compare the
- values, and pushes the result of the comparison. The two compared
- variables are discarded.
- }
- */
-
- #include "icm-exec.h"
-
- void fun_gr ()
- {
- VAR_
- lval,
- rval;
-
- rval = pop ();
- lval = pop ();
- compare (lval, rval);
- stack [sp].vu.intval = (stack [sp].vu.intval > 0);
-
- discard (lval);
- discard (rval);
- }
-